//------------------------------------------------------------------------------
//
//  File: DeviceInterface.h
//
//  Copyright (C) 2007 Visual.Wei
//  Author: Wei Shuai <cpuwolf@sina.com>
//
//  Common Class for Device Driver Development
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
//


#ifndef __H_DEVICEINTERFACE__
#define __H_DEVICEINTERFACE__
#include <windows.h>
struct dev_opt
{
	BOOL (*InitInferface)(VOID);
	HANDLE (*Open)(TCHAR * pszname);
	BOOL (*Close)(HANDLE hDevice);
	BOOL (*Request)(HANDLE hDevice, DWORD dwRequest, LPVOID pInBuf, DWORD dwInSize, 
              LPVOID pOutBuf, DWORD dwOutSize, LPDWORD pdwBytesRet);
};

extern struct dev_opt g_DisplayOpt;
extern struct dev_opt g_StreamOpt;
#endif